#include "rendVect.hpp"
#include <stdio.h>

using namespace rend;

class bandit3 : public vect3
{
public:
	bandit3(
		const float c0,
		const float c1,
		const float c2)
	: vect3(c0, c1, c2)
	{}

	bandit3& cross(const bandit3& v);
};

bandit3& bandit3::cross(const bandit3& v)
{
	return *this = v;
}

void foo(const vect<3>& v)
{
}

void bar(const bandit3& v)
{
	foo(v);
}

int main(int argc, char** argv)
{
	printf("sizeof(bandit3): %d\n", sizeof(bandit3));

	const bandit3 x(1, 0, 0);
	const bandit3 y(0, 1, 0);

	bandit3 a(0, 0, 0);
	a.add(x).cross(y);

	printf("bandit3 a: %f, %f, %f\n", a.get(0), a.get(1), a.get(2));

	bandit3 b(0, 0, 0);
	b.add(x);
	b.cross(y);

	printf("bandit3 b: %f, %f, %f\n", b.get(0), b.get(1), b.get(2));

	foo(bandit3(1, 2, 3));
	bar(bandit3(1, 2, 3));

	return 0;
}
